package cn.gson.springboot.model.dao.privilegedao;

import cn.gson.springboot.model.pjos.Dept;
import cn.gson.springboot.model.pjos.Emp;
import cn.gson.springboot.model.pjos.Permissionsset;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface DeptDao extends CrudRepository<Dept, Integer> {
    @Query(value = "select * from dept where father_dept_id =?1", nativeQuery = true)
    List<Dept> fatherDept(Integer fatherDeptId);
}
